package com.ndp.fb.fbagent.service;

import com.ndp.fb.model.fbagent.param.adgroup.AdGroupParam;

import java.util.Map;

/**
 * Created by Jacky on 2015/2/27.
 */
public interface AdGroupFBService {

    void updateAdGroup(String accessToken, Long fbAccountId, AdGroupParam adGroupParam);

    String updateAdGroupStats(AdGroupParam adGroupParam);


    void updateAdGroupStatsAsyn(AdGroupParam adGroupParam);

    /**
     * 获取广告账号下，已经创建的营销活动的数量
     *
     * @param accessToken
     * @param fbAccountId
     * @return
     */
    Long getAdGroupSumaryByAccount(String accessToken, Long fbAccountId);


    void getAdGroupById(String accessToken, Long accountId, Long adGroupId);

    void getAdGroupByAccount(AdGroupParam adGroupParam);

    /**
     * 获取广告帐号下,adGroup 数据
     *
     * @param accessToken
     * @param accountId
     * @param after
     */

    /**
     * 获取广告帐号下,adGroup 数据
     *
     * @param accessToken
     * @param accountId
     * @param after
     */

    /**
     * 发布adgoup
     *
     * @param adGroupParam
     */
    void createAdGroup(AdGroupParam adGroupParam);


     void getAllAdGroupByAccountv2_4(Map<String, String> equipmentMap);

    /**
     * 第三方图片 获取广告状态
     */
    void getByAdSetId(String accessToken, Long adSetId,AdGroupParam adGroupParam);

    void getOneAdGroupStatus(String accessToken, Long accountId, Long adGroupId, String mongodbId);
}
